package cn.itsource.service;

import cn.itsource.common.AjaxResult;
import cn.itsource.common.PageResult;
import cn.itsource.domain.TDepartment;
import cn.itsource.query.DepartmentQuery;

import java.util.List;

/**
 * Effect:
 * date: 2022/1/13 16:55
 *
 * @author wangyu
 * @since JDK 1.8
 */
public interface IDepartmentService {
    List<TDepartment> findAll();

    PageResult<TDepartment> pageList(DepartmentQuery query);

    AjaxResult deleteDeptById(Long id);

    TDepartment findDeptById(Long id);


    AjaxResult add(TDepartment form);

    AjaxResult update(TDepartment form);


    AjaxResult batchDel(List<Long> ids);

    List<TDepartment> findTree();


}
